<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>淘宝轮播图</title>
    <style>
        * {
            margin: 0px;
            padding: 0px;
        }

        .a {
            /* 子绝父相 */
            position: relative;
            width: 520px;
            height: 280px;
            background-color: pink;
            margin: 120px auto;

        }

        .a image {
            width: 520px;
            height: 280px;
        }

        li {
            list-style: none;
        }

        /* 并集选择器 */
        .jiantuo1,
        .jiantuo2 {
            position: absolute;
            /* 绝对定位居中的算法 */
            top: 50%;
            /* 加了绝对定位的元素可以设置宽度和高度 */
            margin-top: -10px;
            width: 20px;
            height: 20px;
            background: rgba(0, 0, 0, 0.3);
            color: wheat;
            text-align: center;
            line-height: 20px;
            text-decoration: none;
        }

        .jiantuo1 {
            left: 0px;
            border-radius: 0 15px 15px 0;


        }

        .jiantuo2 {
            right: 0px;
            border-radius: 15px 0 0 15px;
        }

        .yuanjiao {
            position: absolute;
            width: 70px;
            height: 12px;
            background: rgba(255, 255, 255, 0.6);
            left: 50%;
            margin-left: -35px;
            bottom: 12px;
            border-radius: 6px;
        }

        .yuanjiao li {
            float: left;
            width: 8px;
            height: 8px;
            background-color: #fff;
            margin: 2px 3px 2px 3px;
            border-radius: 50%;
        }

        .yuanjiao .b {
            background-color: red;
        }
    </style>
</head>

<body>
    <div class="a">
        <img src="images/taobao.jpg" alt="">
        <!-- 左侧按钮 -->
        <a href="" class="jiantuo1">&lt;</a>
        <!-- 右侧按钮 -->
        <a href="" class="jiantuo2">&gt;</a>
        <!-- 小圆角 -->
        <ul class="yuanjiao">
            <li class="b"></li>
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>

    </div>
</body>

</html>